//
// Created by 高壮壮 on 2023/3/21.
//
#include<stdio.h>
int main(){
    int score;
    scanf("%d",&score);
    switch (score/10) {
        case 10:
            printf("优秀\n");
            break;
        case 9:
            printf("优秀\n");
            break;
        case 8:
            printf("良好\n");
            break;
        case 7:
            printf("及格\n");
            break;
        default:
            printf("不及格\n");
            break;
    }
    return 0;
}